<!DOCTYPE html>
<html>
<head>
    <title>应聘者信息表</title>
		<#include "/header.html">
</head>
<body>
<div id="rrapp" v-cloak>
    <div v-show="showList">
        <div class="grid-btn">
			<#if shiro.hasPermission("applicant:applicantinfor:save")>
            <a class="btn btn-primary" @click="add"><i class="fa fa-plus"></i>&nbsp;新增</a>
			</#if>
			<#if shiro.hasPermission("applicant:applicantinfor:update")>
            <a class="btn btn-primary" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</a>
			</#if>
			<#if shiro.hasPermission("applicant:applicantinfor:delete")>
            <a class="btn btn-primary" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
			</#if>
        </div>
        <table id="jqGrid"></table>
        <div id="jqGridPager"></div>
    </div>

    <div v-show="!showList" class="panel panel-default">
        <div class="panel-heading">{{title}}</div>
        <form class="form-horizontal">
														                    <div class="form-group">
                        <div class="col-sm-2 control-label">应聘者姓名</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="applicantInfor.applicantName" placeholder="应聘者姓名"/>
                        </div>
                    </div>
					<!--						                    <div class="form-group">-->
                    <!--    <div class="col-sm-2 control-label">应聘者性别</div>-->
                    <!--    <div class="col-sm-10">-->
                    <!--        <input type="text" class="form-control" v-model="applicantInfor.applicantGender" placeholder="应聘者性别"/>-->
                    <!--    </div>-->
                    <!--</div>-->
            <div class="form-group">
                <div class="col-sm-2 control-label">应聘者性别</div>
                <div class="col-sm-10">
                    <input type="radio" value="男"   name="applicantGender"  v-model="applicantInfor.applicantGender" control-label><label>男</label></input>
                    <input type="radio" value="女"  name="applicantGender"  v-model="applicantInfor.applicantGender" control-label><label>女</label></input>
                </div>
            </div>

            <div class="form-group">
                        <div class="col-sm-2 control-label">应聘者年龄</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="applicantInfor.applicantAge" placeholder="应聘者年龄"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">应聘者电话</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="applicantInfor.applicantTelephone" placeholder="应聘者电话"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">应聘者电子邮件</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="applicantInfor.applicantEmail" placeholder="应聘者电子邮件"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">应聘者专业</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="applicantInfor.applicantProfession" placeholder="应聘者专业"/>
                        </div>
                    </div>
					<!--						                    <div class="form-group">-->
                    <!--    <div class="col-sm-2 control-label">应聘部门</div>-->
                    <!--    <div class="col-sm-10">-->
                    <!--        <input type="text" class="form-control" v-model="applicantInfor.departmentName" placeholder="应聘部门"/>-->
                    <!--    </div>-->
                    <!--</div>-->
            <div class="form-group">
                <div class="col-sm-2 control-label">选择应聘部门</div>
                <div class="col-sm-10">
                    <select  v-model="applicantInfor.departmentName" id="departmentName" class="form-control">
                        <option value="0">请选择</option>
                        <option v-for="(departmentInfor,index) in departments"  :value="departmentInfor.departmentName">{{ departmentInfor.departmentName }}</option>
                    </select>
                </div>
            </div>

            <!--<div class="form-group">-->
            <!--            <div class="col-sm-2 control-label">应聘职位</div>-->
            <!--            <div class="col-sm-10">-->
            <!--                <input type="text" class="form-control" v-model="applicantInfor.positionName" placeholder="应聘职位"/>-->
            <!--            </div>-->
            <!--        </div>-->
            <div class="form-group">
                <div class="col-sm-2 control-label">选择应聘职位</div>
                <div class="col-sm-10">
                    <select  v-model="applicantInfor.positionName" id="positionName" class="form-control">
                        <option value="0">请选择</option>
                        <option v-for="(recruitmentPositionInfor,index) in positions"  :value="recruitmentPositionInfor.positionName">{{ recruitmentPositionInfor.positionName }}</option>
                    </select>
                </div>
            </div>
							            <div class="form-group">
                <div class="col-sm-2 control-label"></div>
                <input type="button" class="btn btn-primary" id="btnSaveOrUpdate" data-loading-text="保存中..." @click="saveOrUpdate" value="确定"/>
                &nbsp;&nbsp;<input type="button" class="btn btn-warning" @click="reload" value="返回"/>
            </div>
        </form>
    </div>
</div>

<script src="${request.contextPath}/statics/js/modules/applicant/applicantinfor.js?_${.now?long}"></script>
</body>
</html>